#!/usr/bin/evn python
# -*- coding: UTF-8 -*-
# @File: BaseApis.py
# @Author: fy
# @date: 2021/10/24 17:21
import logging

import requests
from utils.logger import logger

class BaseApis:

    def __init__(self):
        pass

    def send(self, method, url, **kwargs):
        data = {
            "method": method,
            "url": url,
        }
        data.update(kwargs)
        logger.info(data)
        return requests.request(**data)
